package com.ruoyi.system.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_project_msg_template")
public class ProjectMsgTemplateDO {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long projectId;

    private Long templateId;

    /** 消息类型：与模板type一致 */
    private Integer type;

    /** 是否启用：1启用 0停用 */
    private Integer isActive;

    private String remark;

    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private String updateBy;

    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /** 逻辑删除：0存在 1删除（与模板表保持一致风格，若你用0/2可据实调整） */
    private Integer isDeleted;
}


